const routes = [
    {path: '/login',component: './view/login.vue'},
    {path: '/',component: './view/main.vue',  redirect: '/login', hidden: true,children: []},
    {path: '/home',component: loadVue('./view/main.vue'), hidden: true,  children: [
            {path: '/gateway', component: loadVue('./view/gateway/index.vue'), name: '网关管理', icon: 'guide'},
            {path: '/terminal', component: loadVue('./view/terminal/index.vue'), name: '终端列表', icon: 'message-box'},
            {path: '/scene', component: loadVue('./view/scene/index.vue'), name: '场景联动', icon: 'quartz-watch'},
            {path: '/alarm', component: loadVue('./view/alarm/index.vue'), name: '告警列表', icon: 'warn-triangle-filled'},
            {path: '/event-log', component: loadVue('./view/event-log/index.vue'), name: '事件列表', icon: 'info-filled'},
            {path: '/sysconfig', component: loadVue('./view/sysconfig/index.vue'), name: '参数配置', icon: 'tools'},
            {path: '/signal', component: loadVue('./view/signal/index.vue'), name: '遥测信号', icon: 'odometer'},
            {path: '/profile', component: loadVue('./view/profile/index.vue'), name: '终端配置', icon: 'cellphone'},
        ]},

]